/// UpdateCardCodeDto
class UpdateCardCodeDto {
  /// 核销订单ID
  final int id;
  /// 订单类型：1-核销订单（核销面板）；2-核销历史订单（核销明细）
  final int type;
  /// 卡片代码
  final String cardCode;

  UpdateCardCodeDto({
    required this.id,
    required this.type,
    required this.cardCode,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['type'] = type;
    data['cardCode'] = cardCode;
    return data;
  }

  factory UpdateCardCodeDto.fromJson(Map<String, dynamic> json) {
    return UpdateCardCodeDto(
      id: json['id'],
      type: json['type'],
      cardCode: json['cardCode'],
    );
  }
}